﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Room Repository Interface
    /// </summary>
    public interface IRoomRepository
    {
        /// <summary>
        /// Get All Rooms
        /// </summary>
        /// <returns></returns>
        IQueryable<Room> FindAllRooms();

        /// <summary>
        /// Get Room By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<Room> FindRoomByName(string strQuery);

        /// <summary>
        /// Get Room By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Room GetRoomById(int id);

        /// <summary>
        /// Add Room in the Database
        /// </summary>
        /// <param name="room"></param>
        void Add(Room room);

        /// <summary>
        /// Delete Room from the Database
        /// </summary>
        /// <param name="room"></param>
        void Delete(Room room);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}